<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('审核办理结果')"/>
    <link th:href="@{/ajax/libs/bootstrap-tagsinput/tagsinput.css}" rel="stylesheet">
    <link th:href="@{/ajax/libs/jQuery-ui/jquery-ui.css}" rel="stylesheet">

</head>

<body style="background-color: #F4F6FA">
<div class="main-content" style="margin: 0;padding: 0">

    <form id="form-user-add" class="form-horizontal" th:object="${workFormEty}" style="background-color: #F4F6FA">
        <input type="hidden" th:field="*{pkId}"/>
        <input type="hidden" th:field="*{setProId}" id="setProId"/>
        <input type="hidden" th:field="*{crtStepId}" id="crtStepId"/>
        <input type="hidden" th:field="*{crtStepName}" id="crtStepName"/>

        <div class="col-sm-12" style="display: flex">
            <div class="col-sm-8 entering-page">
                <!--    办理结果    -->
                <div class="col-sm-12 tltieBoder">
                    <div class="blueBorder"></div>
                    <h4 style="margin:0 0 0 10px;color: blue">办理结果</h4>
                </div>
                <div class="col-sm-12">
                    <div class="form-group">
                    <label class="col-sm-1 control-label entering-pd"></label>
                        <div class="col-sm-12">
                            <textarea name="doverDesc" th:field="*{doverDesc}" maxlength="1000"
                                      class="form-control"
                                      cols="60"
                                      rows="6" required></textarea>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-sm-8 entering-page">
                <div class="col-sm-12 tltieBoder">
                    <div class="blueBorder"></div>
                    <h4 style="margin:0 0 0 10px;color: blue">审核选项</h4>
                </div>
                <div class="col-sm-4" style="display: flex;justify-content: space-around;margin-bottom: 10px;">
                    <div class="col-sm-12 select-list" style="display: flex;justify-content: space-evenly;">
                        <ul>
                            <li>
                                <button type="button" class="btn btn-sm btn-success" onclick="pass()"><i class="fa fa-check"></i>&nbsp;通过并提交下一步</button>
                            </li>
                            <li>
                                <button type="button" class="btn btn-sm btn-warning" onclick="backTo()"><i class="fa fa-reply"></i>&nbsp;退回-再办</button>
                            </li>
                            <li>
                                <button type="button" class="btn btn-sm btn-dark" onclick="backTo()"><i class="fa fa-repeat"></i>&nbsp;重新派单</button>
                            </li>
                            <li>
                                <button type="button" class="btn btn-sm btn-danger" onclick="forcedOver()"><i class="fa fa-pencil"></i>&nbsp;强制办结</button>
                            </li>
                            <li>
                                <button type="button" class="btn btn-sm btn-xl" onclick="closeItem()"><i class="fa fa-close"></i>&nbsp;关闭</button>
                            </li>
                        </ul>

                    </div>
                </div>
            </div>
        </div>
    </form>
</div>

<script th:src="@{/ajax/libs/layui/laydate.js}"></script>
<th:block th:include="include :: footer"/>
<script th:src="@{/ajax/libs/bootstrap-tagsinput/tagsinput.min.js}"></script>
<script th:src="@{/ajax/libs/jQuery-ui/jquery-ui.js}"></script>
<script th:src="@{/js/extension.js}"></script>

<script>
    var prefix = ctx + "system/mTelWF";

    //通过并提交下一步
    function pass(){
        var proVal = $("#setProId").val();
        if("11"!=proVal.toString()){
            $("#crtStepId").val("820");
            $("#crtStepName").val("待市领导审核");
        }
        else{//普通工单
            $("#crtStepId").val("900");
            $("#crtStepName").val("待回访");
        }

        var url = prefix + "/rManage/chkResultS?act=1";
        var data = $('#form-user-add').serializeArray();
        $.operate.saveTab(url,data);
    }

    //强制结束
    function forcedOver(){
        var url = prefix + "/rManage/tWFormOverJson";
        var data = $('#form-user-add').serializeArray();
        $.operate.saveTab(url,data);
    }
</script>
</body>
</html>

